<template>
  <div v-if="model&&model.modelKey=='jiaoyiGonggao'" :key="model.modelKey" class="model_box gonggao-box">
    <div class="gonggao-cont flex alc" :style="`backgroundColor:${model.bgColor||''};${model.bgImage?('backgroundImage:url('+model.bgImage+')'):''}`">
      <img :src="model.icon" mode="">
      <div class="cont" :style="`color:${model.txtColor||''}`">
        888元 王者荣耀 【保证金商家·终身售后·找回包赔】-ASYw5227-【可二次】-安卓Q-122英雄-318皮肤-300铭文-
      </div>
    </div>
    <zhezhao @clickSet="clickItem('set')" :hidetxt="true"></zhezhao>
  </div>
</template>

<script>
import zhezhao from '../zhezhao.vue';
export default {
  components:{zhezhao},
  props: {
    model: {
      type: Object,
      default: () => ({}),
    },
  },
  methods: {
    clickItem(type) {
      this.$emit("clickItem", { type: type, modelKey: this.model.modelKey });
    },
  },
};
</script>
<style scoped lang="scss">
.gonggao-box {
  .btn_zhezhao {
    padding-top: 5px !important;
  }
  .gonggao-cont {
    padding: 5px 10px;
    background: #ffffff63;
    background-size: 100% 100%;
    overflow: hidden;
    text-align: right;
    border-radius: 4px;

    img {
      width: 18px;
      height: 12px;
      margin-right: 10px;
    }
    .cont {
      color: #999999;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
    }
  }
}
</style>